Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use CGO_ENBABLED=0 for build #1232

Merged
merged 3 commits into from
Oct 31, 2024
Merged

Use CGO_ENBABLED=0 for build #1232

merged 3 commits into from
Oct 31, 2024

Conversation

RonFed
Copy link
Contributor

@RonFed RonFed commented Oct 30, 2024

We used to have a dependency that required CGO_ENABLED - this was removed in #624.
According to #1215, it seems we are building with CGO_ENABLED (even though we don't have to).

@RonFed RonFed requested a review from a team as a code owner October 30, 2024 12:20
@MrAlias
Copy link
Contributor

MrAlias commented Oct 30, 2024

Why do we want to change this now?

@RonFed
Copy link
Contributor Author

RonFed commented Oct 30, 2024

Why do we want to change this now?

Updated the description with some context.

Makefile Outdated Show resolved Hide resolved
@pellared
Copy link
Member

Why do we want to change this now?

Do we want to change

FROM gcr.io/distroless/base-debian12@sha256:8fe31fb9d159141d9c3ff99f1fd287239d89d97ea95fea1f08f82ea5f2b544da

to FROM scratch (or something else which is lighter than the current "base" image?

@RonFed
Copy link
Contributor Author

RonFed commented Oct 31, 2024

Why do we want to change this now?

Do we want to change

FROM gcr.io/distroless/base-debian12@sha256:8fe31fb9d159141d9c3ff99f1fd287239d89d97ea95fea1f08f82ea5f2b544da

to FROM scratch (or something else which is lighter than the current "base" image?

Sure. I think that image is there because we used to have some glibc requirements in the past.
Should we do this in a separate PR?

@pellared
Copy link
Member

pellared commented Oct 31, 2024

Sure. I think that image is there because we used to have some glibc requirements in the past.
Should we do this in a separate PR?

I think it would be cleaner as a separate PR.

Copy link
Contributor

@grcevski grcevski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@MrAlias MrAlias merged commit 0e18cc4 into open-telemetry:main Oct 31, 2024
26 checks passed
@MrAlias MrAlias added this to the v0.17.0-alpha milestone Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants